package org.example.myleet.p1579;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.maxNumEdgesToRemove(4, new int[][]{{3,1,2},{1,1,3},{1,2,4},{1,1,2},{2,3,4},{3,2,3}}));
        Assert.isTrue(0 == solution.maxNumEdgesToRemove(4, new int[][]{{3,1,2},{3,2,3},{1,1,4},{2,1,4}}));
        Assert.isTrue(-1 == solution.maxNumEdgesToRemove(4, new int[][]{{3,2,3},{1,1,2},{2,3,4}}));
        Assert.isTrue(0 == solution.maxNumEdgesToRemove(2, new int[][]{{1,1,2},{2,1,2}}));
    }
}
